package com.reader.cms.entity.common;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotations.TableName;

/**
*
* @@description 
* @author        gumenghao
* @date          2018-11-07
*/
@TableName("reader_magazine_column_relation")
public class ReaderMagazineColumnRelation extends Model<ReaderMagazineColumnRelation> {

private static final long serialVersionUID = 1L;



@TableId(value="id", type= IdType.AUTO)


private Integer id;

/**
* 关联杂志内容ID
*/

@TableField("magazine_id")

private String magazineId;

/**
* 杂志栏目ID
*/

@TableField("column_id")

private Integer columnId;

/**
* 杂志排序
*/


private Integer num;

/**
* 记录插入时间
*/

@TableField("insert_dt")

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date insertDt;


public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getMagazineId() {
return magazineId;
}

public void setMagazineId(String magazineId) {
this.magazineId = magazineId;
}

public Integer getColumnId() {
return columnId;
}

public void setColumnId(Integer columnId) {
this.columnId = columnId;
}

public Integer getNum() {
return num;
}

public void setNum(Integer num) {
this.num = num;
}

public Date getInsertDt() {
return insertDt;
}

public void setInsertDt(Date insertDt) {
this.insertDt = insertDt;
}

@Override
protected Serializable pkVal() {
return this.id;
}

@Override
public String toString() {
return "ReaderMagazineColumnRelation{" +
	", id=" + id +
	", magazineId=" + magazineId +
	", columnId=" + columnId +
	", num=" + num +
	", insertDt=" + insertDt +
"}";
}
}